package com.keba.lamp.complaint.manager.impl;

import com.keba.basic.base.manager.impl.SuperManagerImpl;
import com.keba.lamp.complaint.entity.Case;
import com.keba.lamp.complaint.manager.CaseManager;
import com.keba.lamp.complaint.mapper.CaseMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 通用业务实现类
 * 诉讼状案件
 * </p>
 *
 * @author twg
 * @date 2025-03-14 21:47:52
 * @create [2025-03-14 21:47:52] [twg] [代码生成器生成]
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class CaseManagerImpl extends SuperManagerImpl<CaseMapper, Case> implements CaseManager {
    @Override
    public Case getByIdAndUserIdAndAppId(Long id, Long userId, String appId) {
        return this.baseMapper.getByIdAndUserIdAndAppId(id, userId, appId);
    }

    @Override
    public List<Case> listByPhone(String phone) {
        return this.baseMapper.listByPhone(phone);
    }

    @Override
    public int updateUserIdByPhone(Long userId, String phone) {
        return this.baseMapper.updateUserIdByPhone(userId, phone);
    }
}


